home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / INITCOLO.C < prev    next >
Text File  |  1992-11-21  |  1KB  |  53 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3.  
  4. #ifndef        NDEBUG
  5. char *rcsid_initcolo = "$Header: c:/curses/portable/RCS/initcolo.c%v 2.0 1992/11/15 03:28:55 MH Rel $";
  6. #endif
  7.  
  8.  
  9.  
  10.  
  11. /*man-start*********************************************************************
  12.  
  13.   init_color() - Change the definition of a color.
  14.  
  15.   PDCurses Description:
  16.  
  17.        This routine is used to change the definition of a color.
  18.        The routine takes four arguments: the number of the color to be
  19.        redefined, and the new values of the red, green and blue
  20.        components of the color.
  21.  
  22.        The value of color must be between 0 and COLORS-1.
  23.        The values of red, green and blue must each fall between 0 and
  24.        1000;
  25.  
  26.        ***** This function doesn't do anything yet *****
  27.  
  28.   PDCurses Return Value:
  29.        This function returns OK if the color change was possible or
  30.        ERR on error.
  31.  
  32.   PDCurses Errors:
  33.        N/A
  34.  
  35.   Portability:
  36.        PDCurses        int init_color( int color, short red, short green, short blue);
  37.        SYS V curses    int init_color( int color, short red, short green, short blue);
  38.  
  39. **man-end**********************************************************************/
  40.  
  41.  
  42. int init_color(int color, short red, short green, short blue)
  43. {
  44.  extern int COLORS;
  45.  
  46.  if (color >= COLORS -1 || color < 1)
  47.     return(ERR);
  48. /*
  49.  * This function doesn't do anything yet...
  50.  */
  51.  return(ERR);
  52. }
  53.